Travelpayouts\components\model\CollectionModel A

Total Complexity 64
Dependencies 3
Dependents 0
Total lines 358
Lines of code 196
Logical lines of code 103
Comment lines 87
Methods 30
Properties 6

Methods 30

Method Rating Maintainability Complexity Lines of code
updateInternal()
S
58 5 16
save()
S
63 6 10
getData()
S
61 5 13
getIncrement()
S
62 5 11
setData()
S
57 4 16
saveInternal()
S
62 4 11
update()
S
65 4 10
deleteAllByPk()
S
58 2 16
findByColumnValue()
S
66 3 8
delete()
S
65 3 10
findAll()
S
67 2 8
assignPrimaryKeyToItem()
S
71 2 6
setAllowSaveWithId()
S
71 2 6
getTotalItemsCount()
S
80 1 3
setId()
S
80 1 3
clearCollection()
S
77 1 4
beforeSave()
S
82 1 3
getIsNewRecord()
S
80 1 3
setOldAttributes()
S
81 1 3
fields()
S
79 1 3
findByPk()
S
80 1 3
findKeyByValue()
S
78 1 3
findByPrimaryKey()
S
79 1 3
getId()
S
82 1 3
setIncrement()
S
81 1 3
setCollection()
S
100 1 0
saveWithID()
S
66 1 8
getModel()
S
73 1 5
getCollection()
S
100 1 0
rules()
S
75 1 5